package cn.com.victorysoft.wellinfo.domain;

import cn.com.victorysoft.ylgl.service.commons.json.DateToISODateTimeSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
测井文档数据
 */
public class LogData {
    private String dataId;

    private String wellId;

    private String wellboreId;

    private String dateType;

    private String projectId;

    private String groupUnitId;

    private BigDecimal noOfTraces;

    private BigDecimal startDepth;

    private BigDecimal endDepth;

    private String fileFormate;

    private String logHeader;

    private String logPath;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date uploadDate;

    public String getWellId() {
        return wellId;
    }

    public void setWellId(String wellId) {
        this.wellId = wellId;
    }

    public String getWellboreId() {
        return wellboreId;
    }

    public void setWellboreId(String wellboreId) {
        this.wellboreId = wellboreId;
    }

    public String getDateType() {
        return dateType;
    }

    public void setDateType(String dateType) {
        this.dateType = dateType;
    }


    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId == null ? null : projectId.trim();
    }

    public String getGroupUnitId() {
        return groupUnitId;
    }

    public void setGroupUnitId(String groupUnitId) {
        this.groupUnitId = groupUnitId;
    }

    public BigDecimal getNoOfTraces() {
        return noOfTraces;
    }

    public void setNoOfTraces(BigDecimal noOfTraces) {
        this.noOfTraces = noOfTraces;
    }

    public BigDecimal getStartDepth() {
        return startDepth;
    }

    public void setStartDepth(BigDecimal startDepth) {
        this.startDepth = startDepth;
    }

    public BigDecimal getEndDepth() {
        return endDepth;
    }

    public void setEndDepth(BigDecimal endDepth) {
        this.endDepth = endDepth;
    }

    public String getFileFormate() {
        return fileFormate;
    }

    public void setFileFormate(String fileFormate) {
        this.fileFormate = fileFormate;
    }

    public String getLogHeader() {
        return logHeader;
    }

    public void setLogHeader(String logHeader) {
        this.logHeader = logHeader;
    }

    public String getLogPath() {
        return logPath;
    }

    public void setLogPath(String logPath) {
        this.logPath = logPath;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd")
    public Date getUploadDate() {
        return uploadDate;
    }

    @JsonSerialize(using = DateToISODateTimeSerializer.class)
    public void setUploadDate(Date uploadDate) {
        this.uploadDate = uploadDate;
    }
}